package com.java.comprehensive.design.building_modelling.singleton_pattern;

/**
 * 饿汉式：静态成员变量
 */
public class SingletonDemo_1 {

    private SingletonDemo_1() {
    }

    private static SingletonDemo_1 INSTANCE = new SingletonDemo_1();

    public static SingletonDemo_1 getInstance() {
        return INSTANCE;
    }
}
